﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleInterestBiz
{
    public class SaacScheduleProperties
    {
        private string _loanDate = "";
        private string _fRepaymentDate = "";
        public Int64 App_Id
        {
            get;
            set;
        }
        public int Frequency
        {
            get;
            set;
        }
        public Double Principal
        {
            get;
            set;
        }
        public Double MonthlyFee
        {
            get;
            set;
        }
        public string LoanDate
        {
            get { return _loanDate; }
            set { _loanDate = SaacScheduleMethod.OutputDateFormat(value); }
        }
        public string FirstRepaymentDate
        {
            get { return _fRepaymentDate; }
            set { _fRepaymentDate = SaacScheduleMethod.OutputDateFormat(value); }
        }
        public double LoanDuration
        {
            get;
            set;
        }
        public double Estabalishment
        {
            get;
            set;
        }
    }
}
